import request from '@/utils/request'

export function getList(data) {
  return request({
    url: '/mgt/company/query',
    method: 'post',
    data
  })
}

export function getSelfList(data) {
  return request({
    url: '/mgt/company/querySelf',
    method: 'post',
    data
  })
}

export function saveByJson(data) {
  return request({
    url: '/mgt/company/saveByJson',
    method: 'post',
    data
  })
}

export function batchLock(data) {
  return request({
    url: '/mgt/company/batchLock',
    method: 'post',
    data
  })
}

export function deletesByLogic(data) {
  return request({
    url: '/mgt/company/deletesByLogic',
    method: 'post',
    data
  })
}

export function updateSort(data) {
  return request({
    url: '/mgt/company/updateSort',
    method: 'post',
    data
  })
}
